﻿<controls:ChildWindow x:Class="MedLink2011.Views.Patients.ChildWindows.MedicationReactionsCW"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
mc:Ignorable="d"
Title="MedicationReactionsEditWindow"
xmlns:viewModels="clr-namespace:MedLink2011.Views.Patients.ViewModels" 
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
xmlns:appControls="clr-namespace:MedLink2011.Controls">
<!--14 Fields --> 
    <controls:ChildWindow.Resources>
        <viewModels:MedicationReactionViewModel x:Key="MedicationReactionViewModel"></viewModels:MedicationReactionViewModel>
    </controls:ChildWindow.Resources>
    <appControls:BusyIndicator x:Name="BusyIndicator" BusyContent="Loading Patients data...." DataContext="{Binding Source={StaticResource MedicationReactionViewModel}}" Foreground="SlateGray" IsBusy="{Binding IsBusy}">
<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource MedicationReactionViewModel}}" Background="WhiteSmoke" >
        <Border BorderBrush="#FF505050"  BorderThickness="2"  CornerRadius="10">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#EDD1DE86" Offset="0.8" />
                    <GradientStop Color="AliceBlue" Offset="1.09" />
                </LinearGradientBrush>
          </Border.Background>
<ScrollViewer x:Name="scrollViewerMedicationReactions" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
<Grid HorizontalAlignment="Left" x:Name="MedicationReactionsGrid" VerticalAlignment="Top">
<Grid.RowDefinitions>
<RowDefinition Height="32" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
    <ColumnDefinition Width="30" />
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="Auto" />
	<ColumnDefinition Width="50" />
	<ColumnDefinition Width="Auto" />
	<ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>


<StackPanel Grid.Column="1" Grid.Row="1" Orientation="vertical"  >
<TextBlock Height="20" Margin="0,5" ToolTipService.ToolTip="Medication Reaction Id" ToolTipService.Placement="Right" Text="Medication Reaction Id:"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Medication Name" ToolTipService.Placement="Right" Text="Medication Name:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Active Ingredient" ToolTipService.Placement="Right" Text="Active Ingredient:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="More Brand Names" ToolTipService.Placement="Right" Text="More Brand Names:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Last Known Reaction Description" ToolTipService.Placement="Right" Text="Last Known Reaction Description:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Dosage Taken For Reaction" ToolTipService.Placement="Right" Text="Dosage Taken For Reaction:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Date Of Reaction" ToolTipService.Placement="Right" Text="Date Of Reaction:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Reaction Notes" ToolTipService.Placement="Right" Text="Reaction Notes:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Recall Conbination With Other Drug" ToolTipService.Placement="Right" Text="Recall Conbination With Other Drug:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Patient Id" ToolTipService.Placement="Right" Text="Patient Id:"  Margin="0,5"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />

</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="1" Orientation="vertical"  >
<TextBlock  Height="26" HorizontalAlignment="Left" Margin="2" x:Name="MedicationReaction_IdTextBox" Text="{Binding Path=CurrentMedicationReaction.MedicationReaction_Id, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" />
<TextBox ToolTipService.ToolTip="Medication Name" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="Medication_NameTextBox" Text="{Binding Path=CurrentMedicationReaction.Medication_Name, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="100"/>
<TextBox ToolTipService.ToolTip="Active Ingredient" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="Active_IngredientTextBox" Text="{Binding Path=CurrentMedicationReaction.Active_Ingredient, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="300"/>
<TextBox ToolTipService.ToolTip="More Brand Names" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="More_Brand_NamesTextBox" Text="{Binding Path=CurrentMedicationReaction.More_Brand_Names, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="300"/>
<TextBox ToolTipService.ToolTip="Last Known Reaction Description" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="Last_Known_Reaction_DescriptionTextBox" Text="{Binding Path=CurrentMedicationReaction.Last_Known_Reaction_Description, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="350"/>
<TextBox ToolTipService.ToolTip="Dosage Taken For Reaction" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="Dosage_taken_for_ReactionTextBox" Text="{Binding Path=CurrentMedicationReaction.Dosage_taken_for_Reaction, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="50"/>
<sdk:DatePicker ToolTipService.ToolTip="Date Of Reaction" ToolTipService.Placement="Right"  Height="26" HorizontalAlignment="Left" Margin="2" x:Name="Date_of_ReactionDatePicker" SelectedDate="{Binding Path=CurrentMedicationReaction.Date_of_Reaction, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left" />
<TextBox ToolTipService.ToolTip="Reaction Notes" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="Reaction_NotesTextBox" Text="{Binding Path=CurrentMedicationReaction.Reaction_Notes, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="350"/>
<TextBox ToolTipService.ToolTip="Recall Conbination With Other Drug" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="RecallConbinationWithOtherDrugTextBox" Text="{Binding Path=CurrentMedicationReaction.RecallConbinationWithOtherDrug, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="100"/>
<TextBlock  Height="26" HorizontalAlignment="Left" Margin="2" x:Name="Patient_IdTextBox" Text="{Binding Path=Patient_Id, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120"  />

</StackPanel>
                        <StackPanel Margin="0,10" Grid.Column="0" Grid.Row="2" Orientation="Horizontal"  Grid.ColumnSpan="3">
                            <Button Margin="20,0,0,0" Style="{StaticResource GreenButton}" x:Name="CancelButton" Content="Cancelar"  Background="Blue" Width="75" Height="23" HorizontalAlignment="Right"  />
                            <Button Margin="20,0,0,0" Style="{StaticResource OrangeButton}" x:Name="SaveButton" Content="Guardar" Background="Green" Width="75" Height="23" HorizontalAlignment="Right" Command="{Binding SaveMedicationReactionCommand}" />
                        </StackPanel>
    
    
      
        </Grid>
        </ScrollViewer>
        </Border>
    </Grid>
    </appControls:BusyIndicator>
</controls:ChildWindow>
